namespace AbpRabbitMqAppOne
{
    using Abp.Modules;
    using Abp.Reflection.Extensions;

    using AbpPlusPlus.Configuration.Startup;
    using AbpPlusPlus.RabbitMq;

    [DependsOn(typeof(AbpRabbitMqModule))]
    public class RabbitMqTestAppOneModule
        :AbpModule
    {
        public override void PreInitialize()
        {
            this.Configuration.Modules.AbpRabbitMq().EventQueueName = typeof(RabbitMqTestAppOneModule).Name.ToLower();
            this.Configuration.Modules.AbpRabbitMq().UserName="pensee";
            this.Configuration.Modules.AbpRabbitMq().Password = "pensee2017";
            this.Configuration.Modules.AbpRabbitMq().VirtualHost = "/";
        }

        public override void Initialize()
        {
            this.IocManager.RegisterAssemblyByConvention(typeof(RabbitMqTestAppOneModule).GetAssembly());
        }
    }
}